<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{$current_good['title']}拍卖</title>
    <link type="text/css" rel="stylesheet" href="__JINJIA__/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="__JINJIA__/css/style.css">
    <style type="text/css">

    </style>
</head>
<body>
<div id="maincontainer">
    <div class="container-fluid">
        <!-- 顶部包括logo和登录 -->
        <div style="width:100%;">
            <a href="{:url('index')}"><img class="img-logo" src="__JINJIA__/images/logo.jpg"></a><span>价高得网络竞价平台&nbsp;&nbsp;&nbsp;&nbsp;服务热线：028-888888</span>
            <p style="display:inline-block; margin-left:80%;">
                <a href="{:url('User/regist')}" style="display: <?php if($myuser['nickname']) echo 'none'; ?>;" class="text-right"><font color="black">注册</font></a>
                <a href="{:url('User/login')}" style="display: <?php if($myuser['nickname']) echo 'none'; ?>;" class="text-right"><font color="black">登录</font></a>
                <?php if($myuser['nickname']) echo '用户：'.$myuser['nickname']; ?>
            </p>
        </div>
        <div id="mynav">
            <nav class="navbar" style="margin-bottom: 0px;">
                <!-- 导航 -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li class="<?php if($action=='index') echo 'active'; ?>"><a href="{:url('Index/index')}"><font color="#FFFFFF">网拍首页</font><span class="sr-only"></span></a></li>
                        <li class="<?php if($action=='soon') echo 'active'; ?>"><a href="{:url('Index/soon')}"><font color="#FFFFFF">即将拍卖</font><span class="sr-only"></span></a></li>
                        <li class="<?php if($action=='now') echo 'active'; ?>" ><a href="{:url('Index/now')}"><font color="#FFFFFF">正在拍卖</font><span class="sr-only"></span></a></li>
                        <li class="<?php if($action=='success') echo 'active'; ?>" ><a href="{:url('Index/salesuccess')}"><font color="#FFFFFF">成功拍得</font><span class="sr-only"></span></a></li>
                        <li class="<?php if($action=='auction') echo 'active'; ?>" ><a href="{:url('auction')}"><font color="#FFFFFF">拍卖会</font><span class="sr-only"></span></a></li>
                    </ul>
                    <form class="navbar-form navbar-left">
                        <div class="form-group">
                            <input type="text" id="navSearch" class="form-control" placeholder="输入文字进行搜索">
                            <div id="search">
                                <a href="javascript:void(0);" onclick="navSearch()">
                                    <font size="3" color="#FFFFFF">搜索</font>
                                </a>
                            </div>
                        </div>
                        <!--  <button type="submit" class="btn btn-default">搜索</button> -->
                    </form>
                </div>
            </nav>
        </div>
        <!--主拍卖内容区域-->
        <div id="pai-main">
            <div id="pai-main-head">
                {volist name="goodslist" id="vo"}
                <a href="{:url('Jinpai/index')}?id={$vo.id}&is_auct=1"  class="<?php if($vo['id']==$current_good['id']) echo 'headnow'; else echo 'headother'; ?>">
                    {$vo.sort}号商品
                    <?php
                        if($vo['is_end'] ==0 ){
                        if($vo['is_giveup']==1){
                        echo '被放弃';
                        }else{
                            if($vo['is_pause']==1){
                                echo '进行中';
                            }else{
                                //未开始或被暂停（这块儿不好区分）
                                if($vo['starttime'])//如果存在开始时间肯定是开始了的被暂停了
                                    echo '被暂停';
                                else
                                    echo '未开始';
                            }
                        }
                        }else{
                            if($vo['is_sure']==1){
                                echo '已流拍';
                            }else{
                                echo '已成交';
                            }
                        }
                    ?>
                </a>
                {/volist}
               <!-- <a href="javascript:void(0);" class="headdeal">1号商品已成交</a>
                <a href="javascript:void(0);" class="headnow">2号商品正在拍卖</a>
                <a href="javascript:void(0);" class="headsoon1">3号商品即将拍卖</a>
                <a href="javascript:void(0);">4号商品即将拍卖</a>-->
                <!--<a href="javascript:void(0);">3号商品即将拍卖</a>
                <a href="javascript:void(0);">4号商品即将拍卖</a>-->

                <div style="clear: both;"></div>
            </div>

            <div id="pai-main-con">
                <div id="maincon-left">
                    <div id="conleft-img">
                        <img src="__PUBLIC__/{$current_good['thumb1']}" id="main-img" style="width:380px; height:263px;">
                    </div>
                    <div id="conleft-imglist">
                        <ul>
                            <li style="margin-left:0;" class="imgaction"><img src="__PUBLIC__<?php if($current_good['thumb1']) echo $current_good['thumb1']; else echo '/static/home/images/myjpai.jpg'; ?>" onclick="imgList.setImgUrl(this)"></li>
                            <li><img src="__PUBLIC__<?php if($current_good['thumb2']) echo $current_good['thumb2']; else echo '/static/home/images/myjpai.jpg'; ?>" onclick="imgList.setImgUrl(this)"></li>
                            <li><img src="__PUBLIC__<?php if($current_good['thumb3']) echo $current_good['thumb3']; else echo '/static/home/images/myjpai.jpg'; ?>" onclick="imgList.setImgUrl(this)"></li>
                            <li><img src="__PUBLIC__<?php if($current_good['thumb4']) echo $current_good['thumb4']; else echo '/static/home/images/myjpai.jpg'; ?>" onclick="imgList.setImgUrl(this)"></li>
                            <div style="clear: both;"></div>
                        </ul>

                    </div>
                </div>
                <div id="maincon-right">
                    <div id="mainright-head" class="pai-relative">
                        <span style="color: #000; font-size: 18px; margin-left:0;">{$current_good['title']}</span> <span style="margin-left:10px;">搜索编号：{$current_good['id']}</span> <span class="pai-absolute">您的编号:<?php if($qualify_info['status']==1) echo $qualify_info['usernumber'];?></span>
                    </div>
                    <div id="mainright-price" class="pai-relative">
                        <span>目前最高价:<font color="#BD2024" size="4"><b id="now_max_price">￥<?php if($biddenlist[0]['price']) echo $biddenlist[0]['price']; else echo $current_good['start_price']; ?>元</b></font></span>
                        <span class="pai-absolute" style="font-size: 15px;" id="my_marup_price">加价幅度:{$current_good['marup_price']}元</span>
                    </div>
                    <div id="mainright-con1" class="pai-relative">
                        <span><span id="time_type">未开始：</span><span id="time_str" style="font-size:16px;">00天00时00分00秒</span></span>
                        <span id="guize" style="position: absolute; right: 220px; color: gray;" data-container="#mainright-con1" data-toggle="popover" data-placement="right" data-content="自由竞价时时间结束进入限时竞价时间，限时竞价时间结束则本拍品整个竞价结束">
                            倒计时说明：
                        </span>
                        <div class="popover fade right in" role="tooltip" id="popover91349" style="top: -11.5px; left: 324px; display: block; z-index:-1;">
                            <div class="arrow" style="top: 34.375%;"></div>
                            <h3 class="popover-title" style="display: none;"></h3>
                            <div class="popover-content">
                                自由竞价结束后进入限时竞价，限时竞价倒计时结束则拍卖结束。为避免您的网络延迟，请在结束5秒前确认出价
                            </div>
                        </div>
                    </div>

                    <div id="mainright-chujia">
                        <span style="font-size: 15px;">出价</span>
                        <button type="button" id="price-cut" onclick="biddenPrice.cutPrice()"><span class=" glyphicon glyphicon-minus"></span></button>
                            <input type="text" value="<?php if($biddenlist[0]['price']) echo $biddenlist[0]['price']+$current_good['marup_price']; else echo $current_good['start_price']; ?>" id="pai-price">
                        <button type="button" id="price-add" onclick="biddenPrice.addPrice()"><span class="glyphicon glyphicon-plus"></span></button>
                        <br>
                        <span style="margin:10px auto 10px 46px; font-size: 13px;">提示：先申请拍卖资格后再进行出价</span>
                        <br>
                        <button class="btn chujiabtn" id="applybtn" data-toggle="modal" data-target="#myModal">申请拍卖资格</button>
                        <button class="btn chujiabtn" id="sendPrice" style="display: none;" onclick="biddenPrice.chuJia()">出价</button>
                    </div>

                    <div id="mainright-descrip">
                        <div>
                            <span class="jianjuright">拍品编号：{$current_good['id']}</span>
                            <span class="jianjuright">拍卖师：{$current_good['auctineer']}</span>
                            <span>执业证书号：{$current_good['code_num']}</span>
                        </div>
                        <div style="margin-top:10px;">
                            <span class="jianjuright">联系电话：{$current_good['phone']}</span>
                            <span>拍卖公司：{$current_good['acut_company']}</span>
                        </div>
                        <div style="margin-top:10px;text-align: center;">
                            <span>竞价规则：限时竞价结束时，目前最高价只有高于或等于保留价方能成交。</span>
                        </div>
                    </div>


                </div>
                <div style="clear: both;"></div>
            </div>
            <!--拍卖师发言-->
            <div id="pai-main-paims">
                <ul id="pms-words">
                    {volist name="wordslist" id="vo"  offset="0" length='3'}
                    <li class="<?php if($i==1) echo 'fayannow'; else echo 'fayanlast';?>">拍卖师：{$vo.text} <span class="paims-time">{$vo.cretime |date="Y-m-d H:i:s",###}</span></li>
                    {/volist}
                </ul>
                <p class="text-center" style="display: <?php if(!$wordslist) echo 'none'; ?>">
                    <button type="button" class="btn btn-danger btn-sm text-center" data-toggle="modal" data-target="#myModalpmswords">
                        更多发言
                    </button>
                </p>
            </div>
            <!--历史出价记录和拍卖规则-->
            <div id="pai-main-record">
                <div id="myTab">
                    <a href="#myrecord" class="rec-active" data-toggle="tab">加价记录</a>
                    <a href="#myguize" data-toggle="tab">拍卖规则</a>
                </div>
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane fade in active" id="myrecord">
                        <table class="table text-center record-table">
                            <tr>
                                <td>编号</td>
                                <td>状态</td>
                                <td>时间</td>
                                <td>出价</td>
                            </tr>
                            <tbody id="bidden-con">
                            {volist name="biddenlist" id="vo"}
                            <tr id="<?php if($i==1) echo 'now-highest';?>">
                                <td>{$vo.usernumber}</td>
                                <td><?php if($i==1) echo '目前最高价'; else echo '已出局';?></td>
                                <td>{$vo.cretime |date="m-d H:i:s",###}</td>
                                <td>￥{$vo.price}元</td>
                            </tr>
                            {/volist}
                            </tbody>



                        </table>
                    </div>
                    <div class="tab-pane fade" id="myguize">
                       {$current_good['rule']}
                    </div>
                </div>
            </div>
        </div>
        <!-- 拍卖师发言 -->
        <div class="modal fade" id="myModalpmswords" tabindex="-1" role="dialog" aria-labelledby="myModalLabelpms">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabelpms">拍卖师发言</h4>
                    </div>
                    <div class="modal-body">
                        <table class="table text-center" style="font-size:11px;">
                            <tbody id="all-pms-con">
                            {volist name="wordslist" id="vo"}
                            <tr class="<?php if($i==1)echo 'fayannow'; else echo 'fayanlast'; ?>;">
                                <td class="text-left">拍卖师：{$vo.text}</td>
                                <td>{$vo.cretime |date="Y-m-d H:i:s",###}</td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
        </div>

        <!--申请拍卖资格模态框-->
        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document" style="width: 400px ;margin-top: 14%; border: 1px solid red;">
                <div class="modal-content" style="">
                    <div class="modal-body text-center" style="padding: 30px;">
                        <form action="#" method="get">
                            <p><input type="text" class="form-control" name="username" placeholder="请输入真实姓名"></p>
                            <p><input type="text" class="form-control" name="phone" placeholder="请输入电话号码"></p>
                           <!-- <p><input type="password" class="form-control" name="password" placeholder="请输入登录密码"></p>
                            <p><input type="password" class="form-control" name="repassword" placeholder="请输入确认密码"></p>-->
                            <input class="btn btn-danger" onclick="apply.checkApply(this.form)" style="background-color: #B70005; padding: 6px 25px;" type="button"  value="点击申请拍卖资格">
                            <span id="applyclose" data-dismiss="modal" style="display: none;">用于关闭模态框</span>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

<script src="__JINJIA__/js/jquery.min.js"></script>
<script src="__JINJIA__/js/bootstrap.min.js"></script>
<script src="__JINJIA__/js/mypaimai.js"></script>
<script src="__JINJIA__/js/style.js"></script>
<script type="text/javascript">
//    window.onload=function(){
//        alert('here');
//    };

$(function () {
    startInit.initInfo({$initInfo['good_info']},{$initInfo['auct_info']},{$initInfo['user_info']},{$initInfo['good_status_info']},{$initInfo['newest_bidden_info']},{$initInfo['other_info']});
    startInit.init();
})
</script>

</html>